//
//  ZTJJmode.m
//  CarTown
//
//  Created by xionghao on 15/9/7.
//  Copyright (c) 2015年 熊浩. All rights reserved.
//

#import "ZTJJmode.h"

@implementation ZTJJmode
-(void)setJianjie:(NSString *)jianjie{
    _jianjie=jianjie;
    NSDictionary *attribute = @{NSFontAttributeName: [UIFont systemFontOfSize:13]};
    CGFloat textwith=XHScreenwidth-100;
    
    CGSize labelSize = [_jianjie boundingRectWithSize:CGSizeMake(textwith, 0) options: NSStringDrawingTruncatesLastVisibleLine | NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading attributes:attribute context:nil].size;
    if (labelSize.height+26>44) {
        self.rowheight=labelSize.height+26;
    }else{
        self.rowheight=44;
    }
    
}

@end
